package com.dell.chen.service.Impl;

import com.dell.chen.dao.SortDao;
import com.dell.chen.dao.impl.SortDaoImpl;
import com.dell.chen.pojo.Sort;
import com.dell.chen.service.SortService;

import java.util.List;

/**
 * @author ：ChenwithIU
 * @date ：Created in 2020/12/2 9:17
 */
public class SortServiceImpl implements SortService {
    private SortDao sortDao = new SortDaoImpl();

    @Override
    public void addSort(Sort sort) {
        sortDao.addSort(sort);
    }

    @Override
    public void deleteSort(Integer id) {
        sortDao.deleteSort(id);
    }

    @Override
    public void updateSort(Sort sort) {
        sortDao.updateSort(sort);
    }

    @Override
    public Sort querySortById(Integer id) {
        return sortDao.querySortById(id);
    }

    @Override
    public List<Sort> querySort() {
        return sortDao.querySort();
    }
}
